package com.water.wfo.user.api;

import com.water.wfo.component.api.entity.response.BasicResponse;
import com.water.wfo.sys.pojo.entity.MenuEntity;
import com.water.wfo.sys.pojo.entity.RoleEntity;
import com.water.wfo.sys.pojo.request.RoleRequest;
import com.water.wfo.sys.pojo.response.MenuResponse;
import com.water.wfo.sys.pojo.response.RoleResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * packageName com.water.wfo.user.api
 *
 * @author junhuili
 * @version JDK 8
 * @date 2024/5/18
 * @description TODO
 */
@RequestMapping("/menu")
public interface MenuApi {

    /**
     * @Author Administrator
     * @Description 查询用户结果集
     * * @param request
     * @Return com.water.wfo.component.api.entity.response.BasicResponse<com.water.wfo.sys.pojo.response.UserResponse>
     * @Date 2024/8/27 17:32
     *
     */
    @PostMapping("/queryTreeInfo")
    BasicResponse<MenuResponse> queryTreeInfo(RoleRequest request);

    @PostMapping("/addMenu")
    BasicResponse<String> addMenuInfo(MenuEntity menuEntity);

    @PostMapping("/editeMenuInfo")
    BasicResponse<String> editeMenuInfo(MenuEntity MenuEntity);
//
//    @GetMapping("/resetPassword")
//    BasicResponse<String> resetPassword(Long userId);
//
    /*@GetMapping("/deleteRole")
    BasicResponse<String> deleteRole(Long roleId);*/
//
//    @PostMapping("/batchDeleteUser")
//    BasicResponse<String> batchDeleteUser(Map<String,Object> map);
}
